home *** CD-ROM | disk | FTP | other *** search
/ Teach Yourself VRML 2 in 21 Days / Teach Yourself VRML 2 in 21 Days.iso / pc / 3rdparty / nugraf / disk6 / data.6 / RUNTIME / SETUP.WIN < prev   
Encoding:
Text File  |  1995-11-23  |  8.8 KB  |  239 lines

  1. listscript = off;
  2. #############################################################################
  3. #                                        #
  4. #              U S E R    S E T U P   F I L E                #
  5. #                                        #
  6. # This is the user setup file. It is read in whenever the program is reset  #
  7. # or if the 'Reload Setup File' menu item is chosen. Any commands used by   #
  8. # the NuGraf Scripting Langauge is acceptable in this setup script file.    #
  9. #                                        #
  10. #############################################################################
  11.  
  12. # ---------------------------------------------------------------------------
  13. #
  14. # The following formats can be used whenever a color value is required:
  15. #
  16. #   ( rgb,  r, g, b )  where r,g,b are values in the range 0.0 to 1.0
  17. #   ( rgb2, r, g, b )  where r,g,b are integer values in the range 0 to 255
  18. #   ( hsv,  h, s, v )  where:    h = hue (0.0 to 360.0)
  19. #                s = saturation (0.0 to 1.0)
  20. #                v = lightness (0.0 to 1.0)
  21. #
  22. # ---------------------------------------------------------------------------
  23. #
  24. # The following example formats and arithmetic operators can be used wherever 
  25. # a numeric value is required (arithmetic operators can be nested as well):
  26. #
  27. #    option ( resolution = (640, 480));
  28. #    option ( resolution = (640, (400 + 80)));
  29. #    option ( resolution = (640, (-400 + 880)));
  30. #    option ( resolution = (640, (240 * 2)));
  31. #    option ( resolution = (640, (960 / 2)));
  32. #
  33. # ---------------------------------------------------------------------------
  34.  
  35. # ----------------->>>>  Default Render Output Driver  <<<<------------------
  36.  
  37. # Comment out one of the following "comment;" command pairs to enable one
  38. # of the following default output device drivers (more are available - see manual)
  39.  
  40. #
  41. # Microsoft Windows output driver options (default at start up)
  42. #
  43. #comment;
  44. outputdriver "driver1" (    # The device handle name 
  45.     framebuffer = mswindows, # The device driver name 
  46.     displaygamma=1.8,    # RGB monitor gamma correction
  47.     imagequantize (enabled=on,numcolors=236), # Turn on image quantization 
  48.     dither=on          # Turn on ordered dithering 
  49.     );
  50. #comment;
  51.  
  52. #
  53. # The following example shows how to install the GIF output driver
  54. #
  55. comment;
  56. outputdriver "driver1" (        # The device handle name 
  57.     file = (gif, "filename.gif"),     # The device driver name 
  58.     displaygamma=1.0,        # RGB gamma correction 
  59.     imagequantize (enabled=on,numcolors=256) # Turn on image quantization 
  60.     );
  61. comment;
  62.  
  63. #
  64. # This example shows how to output an 8-bit colormapped GIF-89a file with
  65. # 256 dithered colors and an image description string.
  66. #
  67. comment;
  68. outputdriver "driver1" (        # The device handle name 
  69.     file = (gif, "filename.gif"),     # The device driver name 
  70.     displaygamma=1.0,        # RGB gamma correction 
  71.     dither=on,              # Turn on ordered dithering 
  72.     optionstring = "gif89a=on",
  73.     optionstring = "imagedescription=Image created with NuGraf"
  74.     );
  75. comment;
  76.  
  77. #
  78. # The following example shows how to install the TIFF driver and set its  
  79. # parameters to output a 24-bit image with a gamma value of  1.0 (the default
  80. # value for disk images).
  81. #
  82. comment;
  83. outputdriver "driver1" (        # The device handle name 
  84.     file = (tiff, "filename.tif"),     # The device driver name 
  85.     displaygamma=1.0,        # Output gamma correction 
  86.     mode = mode_rgb            # Choose the 24-bit RGB output mode
  87.     );
  88. comment;
  89.  
  90. #
  91. # This example shows how to output a 32-bit TIFF file (24-bits of RGB
  92. # data and 8-bits of alpha channel).
  93. #
  94. comment;
  95. outputdriver "driver1" (        # The device handle name 
  96.     file = (tiff, "filename.tif"),    # The device driver name 
  97.     displaygamma=1.0,        # Output gamma correction 
  98.     mode = mode_rgba        # Choose the 32-bit RGB output mode
  99.     );
  100. comment;
  101.  
  102. #
  103. # This  example shows how to output an 8-bit colormapped TIFF file with 256 
  104. # colors that were quantized down using the Wu quantization algorithm.
  105. #
  106. comment;
  107. outputdriver "driver1" (        # The device handle name 
  108.     file = (tiff, "filename.tif"),    # The device driver name 
  109.     displaygamma=1.0,        # RGB gamma correction 
  110.     imagequantize (enabled=on,numcolors=256), # Turn on image quantization 
  111.     mode = mode_rgb,        # Choose the RGB output mode  
  112.     optionstring = "colormaplength=256"
  113.     );
  114. comment;
  115.  
  116. #
  117. # This example shows how to output an 8-bit colormapped TIFF file
  118. # with 256 dithered colors:
  119. #
  120. comment;
  121. outputdriver "driver1" (        # The device handle name 
  122.     file = (tiff, "filename.tif"),    # The device driver name 
  123.     displaygamma=1.0,        # RGB gamma correction 
  124.     imagequantize (enabled=off,numcolors=-1), # Turn off image quantization 
  125.     mode = mode_rgb,        # Choose the RGB output mode 
  126.     dither=on,            # Turn on ordered dithering 
  127.     optionstring = "colormaplength=256"
  128.     );
  129. comment;
  130.  
  131.  
  132. # ----------------------->>>>  Runtime Options  <<<<------------------------
  133.  
  134. # When 'on', bump mapping will be enabled
  135. option ( bumpmapping = on );
  136.  
  137. # When 'on', view volume clipping will be enabled for wireframe output
  138. option ( clipping = off );
  139.  
  140. # When 'on', automatic planar and cubical reflection map creation 
  141. # will first be confirmed by the user
  142. option ( confirm ( autoreflectmaps = on ));
  143.  
  144. # When 'on', all writes to existing files will first be confirmed
  145. option ( confirm ( overwrites = on ));
  146.  
  147. # When 'on', shadow map creation will first be confirmed by the user
  148. option ( confirm ( shadowmaps = on ));
  149.  
  150. # When 'on', shadows will be enabled 
  151. option ( shadows = on );
  152.  
  153. # When 'on', transparency will be enabled
  154. option ( transparency = on );
  155.  
  156. # Geometry culling mode: off, back, front
  157. option ( culling = off );
  158.  
  159. # Field rendering mode: off, upper, lower
  160. option ( field = off );
  161.  
  162. # Rendering level: wireframe, hiddenras, zscanline
  163. option ( renderlevel = zscanline );
  164.  
  165. # Image resolution
  166. option ( resolution = ( 480, 360 ));
  167.  
  168. # Global shading level: off, flat, gouraud, smooth
  169. option ( shading = smooth );
  170.  
  171. # -------------------->>>>  Texture Runtime Options  <<<<---------------------
  172.  
  173. # Global texturing enable (turning this off will disable all texture definitions)
  174. option ( texture ( enabled = on ));
  175.  
  176. # Set to 'on' to compress MIPmap files when they are written to disk
  177. option ( texture ( compressmipmap = off ));
  178.  
  179. # When 'on', all texture images will be preloaded before rendering starts
  180. option ( texture ( preload = off ));
  181.  
  182. # When 'on', MIPmap pyramid files will be saved to disk (not really necessary)
  183. option ( texture ( savemipmap = off ));
  184.  
  185. # Global texture filtering override: disabled, none, bilinear, mipmap
  186. option ( texture ( filteroverride = disabled ));
  187.  
  188. # ------------------>>>>  Default Background Colour  <<<<-------------------
  189.  
  190. # Default background color 
  191. background (color = (rgb, 0, 0, 0));
  192.  
  193. # -------------------->>>>  Environment Variables  <<<<---------------------
  194.  
  195. # These environment variables list the various search paths where files are
  196. # looked for. All environment variables have defaults if not specified here.
  197. #
  198. # The variable '$(NG_WORKING_DIR)' is initialized to the directory where the 
  199. # program was started from.
  200.  
  201. # This path is searched after all other possibilities have been exhausted
  202. # setenv (NG_SEARCHPATH_DEFAULT, "$(NG_WORKING_DIR);$(NG_WORKING_DIR)/runtime;$(NG_WORKING_DIR)/textures;$(NG_WORKING_DIR)/maps;$(NG_WORKING_DIR)/material");
  203.  
  204. # Searchpath to the colour database file
  205. # setenv (NG_SEARCHPATH_COLOR_DATABASE, "$(NG_WORKING_DIR)/runtime/;$(NG_HOME)/runtime");
  206.  
  207. # Searchpath to the colour map files
  208. # setenv (NG_SEARCHPATH_COLORMAPS, "$(NG_WORKING_DIR)/colormap/;$(NG_HOME)/colormap/");
  209.  
  210. # Searchpath to the error messages file
  211. # setenv (NG_SEARCHPATH_ERRMSGS, "$(NG_WORKING_DIR)/runtime/;$(NG_HOME)/runtime;$(NG_LIB_HOME)/c;$(NG_HOME)/c");
  212.  
  213. # Searchpath to the material files
  214. # setenv (NG_SEARCHPATH_MATERIALS, "$(NG_WORKING_DIR)/material/;$(NG_HOME)/material");
  215.  
  216. # Runtime directory. 
  217. # setenv (NG_SEARCHPATH_RUNTIME, "$(NG_WORKING_DIR)/runtime/;$(NG_HOME)/runtime");
  218.  
  219. # Searchpath to the 3D Studio texture map files
  220. setenv (NG_SEARCHPATH_3DSTUDIO_MAPS, "c:\3ds3\maps;c:\3ds4\maps");
  221.  
  222. # Texture image directory
  223. setenv (NG_SEARCHPATH_TEXTURES, "$(NG_WORKING_DIR)/textures/;$(NG_HOME)/textures;$(NG_SEARCHPATH_3DSTUDIO_MAPS)");
  224.  
  225. # NuGraf binary scenes directory
  226. # setenv (NG_SEARCHPATH_SCENES, "$(NG_WORKING_DIR)/scenes/;$(NG_HOME)/scenes");
  227.  
  228. # Directory for shadow maps, saved MIPmaps and reflection maps
  229. # setenv (NG_SEARCHPATH_MAPS, "$(NG_WORKING_DIR)/maps/;$(NG_HOME)/maps");
  230.  
  231. # ----------------->>>>  Default Render Output Driver  <<<<------------------
  232.  
  233. listscript = on;
  234. # Welcome to the NuGraf Scripting Language
  235. #
  236. # Notes: 1) Any errors reported in this window are logged in file 'errors.log'
  237. #        2) The setup file was loaded from the 'runtime\setup.win' file
  238. #        3) Press the 'F2' key to raise this command window to the top
  239. #        4) Edit commands: ^P=previous,^N=next, etc. (see online help)